<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>小程序开发</title>
  <include file="./themes/default/portal/cssH.html"/>
  <style>
    .banner {
      display: block;
      width: 100%;
      height: auto;
    }

    .buttom {
      height: 40px;
      line-height: 40px;
      width: 190px;
      color: #fff;
      border-radius: 20px;
      background: #6884E3;
      margin-top: 47px;
      margin-bottom: 47px;
    }

    .leftP {
      right: 0;
      top: 0;
    }

    .c9 {
      color: #999;
    }

    .c3 {
      color: #333;
    }

    .c6 {
      color: #666;
    }

    .borderLeft {
      height: 4px;
      width: 30px;
      background: #6884E3;
      border-radius: 4px;
      margin-top: 8px;
      margin-bottom: 31px;
    }

    .desc {
      padding: 0 15px;
      height: 80px;
      overflow: hidden;
    }

    .cl {
      line-height: 50px;
      margin-left: 10px;
    }


    .title {
      padding-top: 10px;
      padding-bottom: 32px;
    }

    .make {
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      color: transparent;
      background-color: transparent;
    }


    .make_bottom {
      width: 93px;
      height: 30px;
      line-height: 30px;
      border-radius: 15px;
    }

    @media screen and (min-width: 950px) {
      .f1n {
        font-size: 18px;
      }

      .list {
        display: flex;
      }
      .list > div {
        border-radius: 25px;
        height: 50px;
        line-height: 50px;
        display: flex;
      }

      .list > div:nth-child(2) {
        margin-left: 75px;
        margin-right: 75px;
      }

      .box > div {
        width:25%;
        display: inline-block;
        margin-top: 40px;
      }

      .make:hover .make_bottom {
        border: 1px solid #fff;
      }

      .make:hover {
        color: #fff;
        background-color: rgba(0, 0, 0, 0.3);
      }
    }

    @media screen and (max-width: 950px) {
      .f1n {
        font-size: 14px;
      }

      .list > div {
        border-radius: 25px;
        height: 50px;
        line-height: 50px;
      }

      .box > div {
        width: 100%;
        display: inline-block;
        margin-top: 40px;
      }
    }
    .box {
      width: 70%;
    }

    .imgli {
      width: 64px;
      height: auto;
      margin: 11px 0;
    }

    .img {
      width: 108px;
      height: auto;
    }

    .case > div img {
      width: 100%;
      height: auto;
    }

    .case > div:nth-child(2) {
      margin-left: 24px;
      margin-right: 24px;
    }



    .list > div {
      box-sizing: border-box;
      padding: 0 30px;
      background-color: rgba(240, 242, 252, 1);
      margin-bottom: 25px;
    }

    .list input {
      background-color: rgba(240, 242, 252, 1);
      width: 100%;
      border: none;
    }


    .borderLeft {
      height: 4px;
      width: 30px;
      background: #6884E3;
      border-radius: 4px;
      margin-top: 8px;
      margin-bottom: 31px;
    }

    .bottom {
      width: 110px;
      height: 30px;
      line-height: 30px;
      color: #fff;
      background-image: url("__STATIC__/demo/img/b0.png");
      background-size: cover;
      background-repeat: no-repeat;
    }

    .msg {
      color: #f00;
      font-size: 14px;
      text-align: center;
      margin-top: 20px;
      margin-bottom: 30px;
    }

    .imgLi {
      width: 15px;
      height: 15px;
      margin-right: 3px;
    }

    .navs {
      margin-top: 20px;
      margin-bottom: 70px;
    }

    .border {
      height: 1px;
      background: #ccc;
      width: 100%;
      margin-top: 10px;
    }

    .border > div {
      top: 0;
      right: 0;
      height: 1px;
      width: 150px;
      background: #6884E3;
    }

  </style>
</head>
<body>
<div id="web">
  <div id="app">
    <include file="./themes/default/portal/header.html"/>
    <div>
      <img class="banner" src="__STATIC__/demo/img/cover3.png" alt="">
      <div class="navs">
        <div>
          <div class="flex">
            <!--    从哪些页进来的    -->
            <div>
              <div class="flex flex-align">
                <img class="imgLi" src="__STATIC__/demo/img/d1.png" alt="">
                <div class="f1n" @click="navigatorFun(0)">首页&nbsp;<i class="el-icon-arrow-right"></i>&nbsp;</div>
              </div>
            </div>
            <!--   在当前页的标题    -->
            <div>
              <div class="flex flex-align">
                <img class="imgLi" src="__STATIC__/demo/img/d2.png" alt="">
                <div class="f1n">小程序开发</div>
              </div>
            </div>
          </div>
          <!--   下边框   -->
          <div class="border pr">
            <div class="pa"></div>
          </div>
        </div>
      </div>

      <div class="flex">
        <div style="margin-left: 33px" class="flex-sub pr">
          <div>
            <div class="f28 pr flex" style="z-index: 10">什么是小程序</div>
            <div class="borderLeft pr" style="z-index: 10"></div>
          </div>
          <div class="c6 f16 pr" style="z-index: 10">
            小程序是一种不需要下载安装即可使用的应用，它实现了应用“触手可及”的梦想，用户扫一扫或者搜一下即可打开应用。也体现了“用完即走”的理念。小程序能够实现消息通知、线下扫码、公众号关联等七大功能。其中，通过公众号关联，用户可以实现公众号与小程序之间相互跳转。小程序是4年内最大的移动互联网商机，率先上线小程序，抢占流量红利，实现营收激增！
          </div>
          <div>
            <div class="buttom tc f14 pr" style="z-index: 10">立即获取方案和报价</div>
          </div>
          <img class="pa leftP" height="260px" src="__STATIC__/demo/img/bg0.png" alt="">
        </div>
        <div><img class="pr" style="z-index: 10" height="260px" src="__STATIC__/demo/img/see3.png" alt=""></div>
      </div>

      <div>
        <div class="tc f28">高端定制</div>
        <div style="height: 14px"></div>
        <div class="tc f20 c9">专业技术开发，专注产品体验</div>
      </div>

      <div class="flex flex-align flex-center">
        <div class="box">
          <div :key="index" v-for="(item,index) in list">
            <div class="flex flex-align flex-center"><img class="img" :src="item.img" alt=""></div>
            <div class="tc f20 c6">{{item.title}}</div>
            <div class="flex flex-align flex-center"><img class="imgli" src="__STATIC__/demo/img/bg1.png" alt=""></div>
            <div class="tc f14 c9 desc">{{item.desc}}</div>
          </div>
        </div>
      </div>
      <div style="height: 32px"></div>

      <div>
        <div class="tc f28">
          相关案例
          <div class="flex flex-align">
            <div class="borderLeft" style="margin-bottom: 10px"></div>
          </div>
        </div>
      </div>
      <div style="height: 32px"></div>

      <div class="case flex">
        <div class="flex-sub pr" :key="index" v-for="(item,index) in imgs">
          <img :src="item.image" alt="">
          <div class="pa make flex flex-align flex-center">
            <div>
              <div class="f20 tc">天津四辈大福来</div>
              <div class="f16 tc title">官方网站建设</div>
              <div class="flex flex-align">
                <div class="make_bottom tc f14" @click="goPage(5,item)">查看项目</div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div style="height: 32px"></div>
      <div>
        <div>
          <div class="tc f28">
            联系我们
            <div class="flex flex-align">
              <div class="borderLeft" style="margin-bottom: 10px"></div>
            </div>
          </div>
          <div style="height: 32px"></div>
          <div class="list">
            <div class="flex-sub"><input class="f14" type="text" v-model="name" placeholder="请输入您的姓名"/></div>
            <div class="flex-sub"><input class="f14" type="text" v-model="phone" placeholder="请输入手机号/邮箱"/></div>
            <div class="flex-sub"><input class="f14" type="text" v-model="text" placeholder="需要解决的行业"></div>
          </div>
          <div style="height: 32px" v-show="!msg"></div>
          <div class="msg" v-show="msg">{{msg}}</div>

          <div class="flex flex-center flex-align">
            <div class="tc f14 bottom" @click="contact()">立即联系</div>
          </div>
        </div>

      </div>
      <div style="height: 60px"></div>
    </div>



  </div>
  <!--  尾  -->
  <include file="./themes/default/portal/footer.html"/>
  <input type="hidden" name="caseList" value='{$json}' id="caseList">

<script>
  var app = new Vue({
    el: '#web',
    data: {
      show: false,
      navIndex: 0,
      navList: [{title: '网站首页', name: 'main', nav: []}, {title: '看见梧桐树', name: 'see', nav: []}, {
        title: '看清梧桐树',
        name: 'clearly',
        nav: []
      }, {title: '看懂梧桐树', name: 'caseList', nav: []}, {title: '凤栖梧桐', name: 'contact', nav: []}],
      navLists: [
        {title: '网站首页', name: 'main', nav: []},
        {title: '看见梧桐树', name: 'see', nav: ['企业简介', '关于我们']},
        {title: '看清梧桐树', name: 'clearly', nav: ['新闻资讯']},
        {title: '看懂梧桐树', name: 'caseList', nav: ['小程序开发', '公众号开发', 'APP开发', '品牌网站']},
        {title: '凤栖梧桐', name: 'contact', nav: ['品牌网站']}],

      // 手机端导航列表
      navList1: [
        {
          img: '__STATIC__/demo/img/nav7.png',
          title: '小程序开发',
          name: 'program'
        },
        {
          img: '__STATIC__/demo/img/nav4.png',
          title: 'APP开发',
          name: 'development'
        },
        {
          img: '__STATIC__/demo/img/nav6.png',
          title: '公众号开发',
          name: 'publicNumber'
        },
        {
          img: '__STATIC__/demo/img/nav5.png',
          title: 'PC/WAP建站',
          name: 'build'
        }
      ],
      list: [
        {
          title: '用完即走',
          img: '__STATIC__/demo/img/nav14.png',
          desc: '用户不用关心是否安装太多应用的问题小程序随时可用，又无需安装卸载'
        },
        {
          title: '全面降低成本',
          img: '__STATIC__/demo/img/nav15.png',
          desc: '小程序开发成本几乎为APP的三分之一，为创业者减轻负担。'
        },
        {
          title: '分享红利 ',
          img: '__STATIC__/demo/img/nav16.png',
          desc: '小程序可方便分享到微信个人和群聊窗口中，回话中点击即用，非常方便传播'
        },
        {
          title: '10亿活跃流量引进 ',
          img: '__STATIC__/demo/img/nav17.png',
          desc: '微信附带的10亿用户群，解决了传统APP必须花钱买流量的难题。'
        },
      ],
      imgs: [],
      msg: '',
      name: '',
      text: '',
      phone: ''
    },
    mounted: function () {

    },
    created: function () {
        var caseList = document.getElementById('caseList').value;
        var caseLists = JSON.parse(caseList);
        this.imgs = caseLists;
    },
    methods: {
      goPage: function (index,item){
        switch (index) {
          case 0:
            window.location.href = "{:url('index/program')}"
            break
          case 1:
            window.location.href = "{:url('index/development')}"
            break
          case 2:
            window.location.href = "{:url('index/publicNumber')}"
            break
          case 3:
            window.location.href = "{:url('index/build')}"
            break
          case 5:
              window.location.href = "{:url('index/caseDetail')}?id="+item.id+"&name="+item.title
            break
        }
      },
      navigatorFun: function (index){
        switch (index) {
            case 0:
                window.location.href = "{:url('index/index')}"
                break
            case 1:
                window.location.href = "{:url('index/see')}"
                break
            case 2:
                window.location.href = "{:url('index/clearly')}"
                break
            case 3:
                window.location.href = "{:url('index/caseList')}"
                break
            case 4:
                window.location.href = "{:url('index/contact')}"
                break
        }
      },
      contact: function () {
        var _this = this
        var reg = /^1[5||4||3||6|7||8||9][0-9]{9}$/
        var ref = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
        if (!_this.name || _this.name.length > 30) {
          _this.msg = '请确认您的姓名是否填写（或长度超出30个字符）！'
            return false;

        }
        if (!reg.test(_this.phone) && !ref.test(_this.phone)) {
          _this.msg = '请确认您的邮箱（或手机号）是否填写（或填写的是否正确）！'
            return false;

        }
        if (!_this.msg) {
          _this.msg = '请填写需要解决的行业！'
            return false;

        }
          $.post("{:url('Index/postContact')}",{
              user_name:this.name,
              str:this.phone,
              content:this.msg
          },function(data){
              var res = JSON.parse(data);
              if(res.code == 1){
                  layer.msg('留言成功',function(){
                      window.location.href = "{:url('Index/index')}";
                  });
              }else{
                  layer.msg('网络错误');
              }
          })
      }
    }
  })

</script>
</html>